import request from '@/api/request.js'

// 部门配置查询表单组
export function getDepartments(param) {
    return request({
        url: 'wflow/departments/getDepartments',
        method: 'get',
        params: param,
    })
}

export function getDepartUpdate(param) {
    return request({
        url: 'wflow/departments/getDepartments',
        method: 'put',
        data: param,
    })
}

// 值集配置查询表单组
export function getBaseinfoH(param) {
    return request({
        url: 'wflow/baseinfo/baseinfoH',
        method: 'get',
        params: param,
    })
}

export function baseinfoHSave(params) {
    return request({
        url: 'wflow/baseinfo/baseinfoH',
        method: 'post',
        data: params
    })
}
export function baseinfoHUpdate(params) {
    return request({
        url: 'wflow/baseinfo/baseinfoH',
        method: 'put',
        data: params
    })
}

export function baseinfoHDelete(id) {
    return request({
        url: 'wflow/baseinfo/baseinfoH/' + id,
        method: 'delete'
    })
}

// 字典项查询表单组
export function getBaseinfoD(param) {
    return request({
        url: 'wflow/baseinfo/baseinfoD',
        method: 'get',
        params: param,
    })
}
export function baseinfoDSave(params) {
    return request({
        url: 'wflow/baseinfo/baseinfoD',
        method: 'post',
        data: params
    })
}

export function baseinfoDUpdate(params) {
    return request({
        url: 'wflow/baseinfo/baseinfoD',
        method: 'put',
        data: params
    })
}

export function baseinfoDDelete(id) {
    return request({
        url: 'wflow/baseinfo/baseinfoD/' + id,
        method: 'delete'
    })
}
// 值集配置查询表单组
export default {
    getDepartments,
    getDepartUpdate,
    getBaseinfoH,
    baseinfoHSave,
    baseinfoHUpdate,
    baseinfoHDelete,
    getBaseinfoD,
    baseinfoDSave,
    baseinfoDUpdate,
    baseinfoDDelete
}